from sqlalchemy import Column, Integer, String, Boolean
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()

class NewInfoPush(Base):
    """
    新信息推送模型
    """
    __tablename__ = "new_info_push"
    
    id = Column(Integer, primary_key=True, autoincrement=True)
    email = Column(String(30), comment="接受推送的邮箱")
    count = Column(Integer, comment="推送次数")
    isDelete = Column(Boolean, default=False, comment="是否删除")
    
    def __repr__(self):
        return f"<NewInfoPush(id={self.id}, email={self.email}, count={self.count})>"